<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	template="/pages/templates/template.xhtml">
	<ui:define name="metadata">
	</ui:define>
	<ui:define name="content">
		<h:form id="formCoinvite">
			<div>
				<div class="div-titulo-tela">
					<p:outputLabel styleClass="titulo-tela">Novo Convite</p:outputLabel>
					<br /> <br />
					<p:separator></p:separator>
					<div class="div-titulo-botoes">
						<p:commandButton value="Convidar" disabled="#{!ConviteBean.podeConvidar}"
							action="#{ConviteBean.doConvidar}"/>
					</div>
				</div>
				<div>
					<div class="div-corpo-tela">
						<div class="div-mensagem">
							<p:messages id="messages" autoUpdate="true" closable="true" />
						</div>
						<h:panelGrid columns="2" cellpadding="10">
							<p:outputLabel>Grupo de Trabalho: </p:outputLabel>
							<p:outputLabel>#{ConviteBean.grupo.id}</p:outputLabel>
							<p:outputLabel>Ano/Semestre: </p:outputLabel>
							<p:outputLabel>#{ConviteBean.grupo.ano} / #{ConviteBean.grupo.semestre}</p:outputLabel>
							<p:outputLabel>Obs: </p:outputLabel>
							<p:outputLabel>#{ConviteBean.grupo.observacao}</p:outputLabel>
						</h:panelGrid>
						
						<h:panelGrid columns="2" cellpadding="10">
							<p:outputLabel>Matrícula: </p:outputLabel>
							<p:inputMask label="Matrícula" maxlength="9"  disabled="#{!ConviteBean.podeConvidar}"
								value="#{ConviteBean.alunoConvidado.matricula}" />
							<p:outputLabel>E-mail: </p:outputLabel>
							<p:inputText label="E-mail"  disabled="#{!ConviteBean.podeConvidar}"
								value="#{ConviteBean.alunoConvidado.email}"></p:inputText>
						</h:panelGrid>
					</div>
				</div>
			</div>
		</h:form>
	</ui:define>
</ui:composition>

